package quizman;

import quizman.domain.Quiz;
import quizman.mappers.QuizMapper;

public class EditQuizTS {

	public static Quiz execute(String quizName, String quizLength, String quizBegin, String quizEnd) throws Exception {
		
		Quiz q = QuizMapper.find(quizName);
		q.setLength(Integer.parseInt(quizLength));
		//set new begin.
		//set new end.
		QuizMapper.update(q);
		
		return q;
	}

}
